package pref.junx.flybird.activity.addGroup;

import android.util.Log;

import pref.junx.flybird.entity.FriendShip;

/**
 * Created by 半生瓜 on 2017/8/7.
 */

public class AddGroup_Presenter extends AddGroup_Conteact.Presenter {


    @Override
    public void addfri(FriendShip f) {
        rxManager.add(
                modle.addfri(f)
                        .subscribe(result -> {
                                    if (result.getData()) {
                                        view.susses();
                                    } else {
                                        view.fail();
                                    }

                                },
                                e -> {
                                    Log.i("test2", e.getMessage());
                                }));
    }
}
